from applications.models import *
from django.contrib import admin

class ApplicationValueInline(admin.TabularInline):
    raw_id_fields = ('field',)
    model = ApplicationValue
    extra = 1

class ApplicationAdmin(admin.ModelAdmin):
    raw_id_fields = ('sender', 'form')
    inlines = [ApplicationValueInline]



admin.site.register(Application, ApplicationAdmin)
